<?php
/**
 * list.phtml
 * 
 * listing posts
 * 
 * @category    Madoqua
 * @package     Module
 * @subpackage  Blog
 */
?>
<div class="post-list">
    <h2>Listing posts</h2>
    <p class="desc">
        Listing posts from <?php echo $this->date($this->start); ?> to <?php echo $this->date($this->end); ?>. 
    </p>
    <ul>
        <?php foreach($this->posts as $post) : ?>
        <li class="n<?php echo $this->alternate(array(0,1)); ?>">
            <h3>
                <a href="<?php echo $this->url(array('slug' => $post->slug), 'post_read'); ?>">
                    <?php echo $post->title; ?>
                </a>        
            </h3>
            <span class="date">
                <?php echo $this->date($post->posted); ?>
            </span>
            <div class="intro">
                <?php echo $post->intro; ?>
            </div>
        </li>
        <?php endforeach; ?>
    </ul>
</div>